//
// Created by hongrui on 5/13/21.
//

#ifndef LIBEVENT_UDP_SOCKET_CONFIG_HPP
#define LIBEVENT_UDP_SOCKET_CONFIG_HPP
#include <string>
using namespace std;
enum {
    TCP,
    UDP
};
class socket_config {
public:
    socket_config() {
        port_ = 1514;
        backlog_ = 1024;
        type_ = UDP;
        ip_ = "0.0.0.0";
    }
    virtual ~socket_config() = default;
public:
    int port_;
    int backlog_;
    unsigned char type_;
    string ip_;
};

#endif //LIBEVENT_UDP_SOCKET_CONFIG_HPP
